import service from '@/utils/crmRequest'

export default () => ({
  MARKET_RULE_CREATE: (data) => {
    return service({
      url: '/api/market-rules/create',
      method: 'post',
      data
    })
  },
  MARKET_RULE_EDIT: (data) => {
    return service({
      url: '/api/market-rules/update',
      method: 'put',
      data
    })
  },
  MARKET_RULE_LIST: (data) => {
    return service({
      url: '/api/market-rules/list',
      method: 'post',
      data,
    })
  },
  MARKET_RULE_DELETE: (params) => {
    return service({
      url: '/api/market-rules/delete',
      method: 'delete',
      params
    })
  },
})
